#include <stdio.h>
#include <string.h>

int main(int argc, char *argv)
{
	int n, i, j;
	scanf("%d", &n);

	for (i = 0; i < n/2; i++) {
		for (j = 0; j < i; j++) { 
			printf(" ");
		}
		printf("X");
		for (j = 0; j < n-2-(i*2); j++) {
			printf(" ");
		}
		printf("X\n");
	}
	
	for (j = 0; j < n/2; j++) {
		printf(" ");
	}
	printf("X\n");

	for (i = n/2; i < n-1; i++) {
		for (j = 0; j < n-i-2; j++) {
			printf(" ");
		}
		printf("X");
		for (j = 0; j < n-2-((n-i-2)*2); j++) { 
			printf(" ");
		}
		printf("X\n");
	}
	

	return 0;
}
